
#ifndef UI_CADTOOLBARLINES_H
#define UI_CADTOOLBARLINES_H

class UI_CadToolBar;

#include "wf_actionhandler.h"
#include "ui_ui_cadtoolbarlines.h"
#include "..\gui_export.h"

class GUI_EXPORT UI_CadToolBarLines : public QWidget, public Ui::UI_CadToolBarLines
{
    Q_OBJECT

public:
    UI_CadToolBarLines(QWidget* parent = 0, const char* name = 0, Qt::WindowFlags fl = 0);
    ~UI_CadToolBarLines();

public slots:
    virtual void contextMenuEvent( QContextMenuEvent * e );
    virtual void setCadToolBar( UI_CadToolBar * tb );
    virtual void drawLine();
    virtual void drawLineAngle();
    virtual void drawLineHorizontal();
    virtual void drawLineHorVert();
    virtual void drawLineVertical();
    virtual void drawLineParallel();
    virtual void drawLineParallelThrough();
    virtual void drawLineRectangle();
    virtual void drawLineBisector();
    virtual void drawLineTangent1();
    virtual void drawLineTangent2();
    virtual void drawLineOrthogonal();
    virtual void drawLineRelAngle();
    virtual void drawLineFree();
    virtual void drawLinePolygon();
    virtual void drawLinePolygon2();
    virtual void back();

protected:
    UI_CadToolBar* cadToolBar;
    WF_ActionHandler* actionHandler;

protected slots:
    virtual void languageChange();

private:
    void init();

};

#endif // QG_CADTOOLBARLINES_H
